package com.example.order.controllerApi;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class Order {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/order")
    public String oder(){
        String forObject = restTemplate.getForObject("http://app-eplample-user/user", String.class);
        return forObject;
    };

}
